import path, { resolve } from 'path'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import basicSSL from '@vitejs/plugin-basic-ssl'
console.log(path.resolve(__dirname, 'src/renderer/index.html'))
export default defineConfig({
  root: 'src/renderer',
  build: {
    minify: false,
    rollupOptions: {
      input: {
        main: path.resolve(__dirname, 'src/renderer/index.html')
      }
    }
  },
  server: {
    port: 8000,
    // https: true,
    host: true
  },
  resolve: {
    alias: {
      '@renderer': resolve('src/renderer/src')
    }
  },
  plugins: [basicSSL(), vue()]
  //plugins: [vue()]
})
